<div class="titlebar">
    <div class="fn-left"><i class="iconfont icon-line-chart_icon"></i> 数据统计</div>
    <div class="fn-right">
        <form class="input-group" id="form" action="{:url('info.mp/index',['types' => 0])}">
            <input placeholder="开始时间" class="input w100 ui-date" type="text" name="starttime" readonly autocomplete="false" value="{$starttime}"/>
            <input placeholder="结束时间" class="input w100 ui-date" type="text" name="endtime" readonly autocomplete="false" value="{$endtime}"/>
            <input type="submit" value="搜索" class="button button-blue" />
        </form>
    </div>
    <div class="fn-right button-group">
        <a href="{:url('info.mp/index',['time' => 1,'types'=>0])}" class="button {$time==1?'button-violet':''}">今日</a>
        <a href="{:url('info.mp/index',['time' => 2,'types'=>0])}" class="button {$time==2?'button-violet':''}">昨日</a>
        <a href="{:url('info.mp/index',['time' => 30,'types'=>0])}" class="button {$time==30?'button-violet':''}"">本月</a>
        <a href="{:url('info.mp/index',['time' => 60,'types'=>0])}" class="button {$time==60?'button-violet':''}"">上月</a>
    </div>
</div>
<div class="cards">
    <div class="card green">
        <div class="fn-left"><i class="iconfont icon-my_icon"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$num}</div><div class="text">开通数量</div></div>
    </div>
    <div class="card yellow">
        <div class="fn-left"><i class="iconfont icon-renminbi1688"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$vip_num}</div><div class="text">认证号数量</div></div>
    </div>
    <div class="card blue">
        <div class="fn-left"><i class="iconfont icon-renminbi1688"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$notvip_num}</div><div class="text">普通号数量</div></div>
    </div>
</div>
<div class="titlebar">
    <div class="fn-left"><a href="{:url('info.mp/edit')}" class="button button-blue fn-cp"><i class="iconfont icon-add_icon"></i>创建城市号</a></div>
    <div class="fn-right">
        <a href="{:url('info.mp/index',['types'=>0,'time'=>$time])}" class="button{if $types == 0} button-green{/if}">正常</a>
        <a href="{:url('info.mp/index',['types'=>1,'time'=>$time])}" class="button{if $types == 1} button-green{/if}">锁定</a>
    </div>
</div>
<table class="table">
<thead>
    <tr>
        <th class="fn-tac w80">认证</th>
        <th class="fn-tac w60">城市号</th>
        <th></th>
        <th class="fn-tac w60">用户</th>
        <th></th>
        <th class="fn-tac w80">锁定</th>
        <th class="fn-tac w60">粉丝</th>
        <th class="fn-tac w60">点赞</th>
        <th class="w140">开通时间</th>
        <th class="fn-tac w80">操作</th>
    </tr>
</thead>
<tbody>
{foreach $lists as $vo}
<tr>
    <td class="fn-tac">
        <a class="actUrl" url="{:url('info.mp/vip',['id'=>$vo.id])}" href="javascript:;" title="普通/认证">
            {if $vo.is_vip}<span class="badge bg-red">认证号</span>{else}<span class="badge">普通号</span>{/if}
        </a>
    </td>
    <td><img src="{$vo.logo}" class="w100-100" /></td>
    <td>
        <i class="iconfont icon-license"></i><a href="javascript:;" url="{:url('info.mp/review',['id'=>$vo.id])}" class="fn-fb selectID">{$vo.title}</a><br />
        <i class="iconfont icon-text_icon"></i><span class="gray">{$vo.vip_title?$vo.vip_title:$vo.note}</span>
    </td>
    <td class="fn-tac"><img src="{$vo.user.face}" class="w40" /></td>
    <td><a href="javascript:;" url="{:url('system/passport.user/review',['uid' => $vo.uid])}" class="selectID">{$vo.user.nickname}</a></td>
    <td class="fn-tac">
        <a class="actUrl" url="{:url('info.mp/lock',['id'=>$vo.id])}" href="javascript:;" title="锁定/正常">{if $vo.is_lock}<span class="badge bg-red">锁定</span>{else}<span class="badge">正常</span>{/if}</a><br />
    </td>
    <td class="fn-tac">{$vo.fans}</td>
    <td class="fn-tac"></td>
    <td>{$vo.reg_time|date='Y-m-d H:i'}</td>
    <td class="fn-tac">
        <a class="button button-mini" href="{:url('info.mp/edit',['id'=>$vo.id])}"><i class="iconfont icon-edit"></i>编辑</a>
    </td>
</tr>
{/foreach}
</tbody>
</table>
{$lists|raw}
<script type="text/javascript">
Do('base','layer',function(){
    $('.isDel').isDel();
    $('.actUrl').actUrl();
    $('.selectID').win();
})
</script>